package com.copyctrl.feignapi.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author:JH
 * @version:1.0
 */
@FeignClient("localhost:7998/search")
public interface SearchClient {
    @PutMapping("/put/passage")
    public void add(@RequestBody Map<String,String> body);
    @DeleteMapping("/delete/{passage}")
    public void delete(@PathVariable String passage);
    @PutMapping("/update/{passage}")
    public void update(@PathVariable String passage);

}
